<include file="Public:header" />
			<div id="content" class="container_16 clearfix">
				<div class="grid_16">
					<h2>Edit Coupon</h2>
					<!--<p class="error">Something went wronk.</p>-->
				</div>
				
				<form action="__URL__/edit" method="post" enctype="multipart/form-data">
				<div class="grid_5">
					<p>
						<label for="title">Title <small>Must contain alpha-numeric characters.</small></label>
						<input type="text" name="c_name" value="{$coupon.c_name}" />
					</p>
				</div>

				<div class="grid_5">
					<p>
						<label for="title">Slug <small>Must contain alpha-numeric characters.</small></label>
						<input type="text" name="video_name" />
					</p>
						
				</div>
				<div class="grid_6">
					<p>
						<label for="title">Category</label>
						<select name="cat" >
							<option value="" selected="selected">Select Category</option>
							<foreach name="cats" item="cat" >
							<option value="{$cat.id}" <if condition="$cat.id eq $c_cat">selected="selected"</if>>{$cat.name}</option>
							</foreach>
						</select>
					</p>
				</div>
				
				<div class="grid_8">
					<p>
						<label for="title">Quantity <small></small></label>
						<input type="text" name="c_number" value="{$coupon.c_number}" />
					</p>
						
				</div>
				
				<div class="grid_8">
					<p>
						<label for="title">Points <small></small></label>
						<input type="text" name="points" value="{$coupon.points}" />
					</p>
						
				</div>
				
				<div class="grid_8">
					<p>
						<label for="title">Upload Image <small></small></label>
						<input type="file" name="photo" />
						<!--<img width="100" height="50" src="{$coupon.img}" />-->
					</p>
						
				</div>
				<div class="grid_16">
					<p>
						<label>Summary <small>Will be displayed in search engine results.</small></label>
						<textarea></textarea>
					</p>
				</div>

				<div class="grid_16">
					<p>
						<label>Article <small>Markdown Syntax.</small></label>
						<textarea class="big"></textarea>
					</p>
					<p class="submit">
						<input type="submit" value="edit" />
						<input type="hidden" name="c_id" value="{$coupon.c_id}" />
						<input type="hidden" name="submitted" value="submitted" />
					</p>
				</div>
				</form>
			</div>
			
<include file="Public:footer" />